package com.xpoint.backend.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xpoint.backend.common.R;
import com.xpoint.backend.entity.Category;

import java.util.List;

public interface CategoryService extends IService<Category> {
    //    分页查询
    R<Page> fnidPageByCategory(Long page, Long pageSize);

    //    删除分类
    R<String> removeCategoryById(Long id);

    R<String> addCategory(Category category);

    R<String> updateCategory(Category category);
    R<List<Category>> findDishTypeList(Long type);

}
